Implementing symbolic get args method#2396
Implementing symbolic get args method#2396anutosh491 wants to merge 1 commit intolcompilers:mainfrom
Conversation
|
I'm not fully sure how we design this through the pass. As in we would have the following
Do you know of anything else we could do @certik ? |
|
BTW this is the design for the 2nd approach we were discussing here (#2393 (comment)) The first design won't look too different.
i) Now we might need a check if the argument index isn't out of bounds so we could use We could maybe choose what suits us better here ! |
|
I think indeed you need to convert the Once you have |
|
Actually I see something strange when I was writing the code for this. Consider the following. We have Why do I get |
|
Okay If I just add one line to the above block I get The second EDIT: |
|
I think a slow but hopefully straightforward way to implement |
|
I'm actually pretty confused at this point . Let's say our expression is ( The output I am quite clueless as to how we get this output. We are printing the elements of the list through |
I guess this would be more supportive of the first design which we were talking about (where our |
|
I've created a draft PR through design 1 too #2399 . I think it's a more simpler and accessible approach than this one. We can choose if we prefer a method over the other. |
|
Closing as we have an implementation for extracting args for now. (Can be opened if we plan on changing the design later) |
Trying to execute something like this